<?php
/**
 * 用户登录信息操作 业务层
 * @author yangchao
 * 用户登录信息
 * @package user
 * @copyright yangchao
 * @version 1.0
 * @code-encode utf-8
 * @data-encode 2010-01-17
 */

class user_login {

	/**
	 * 用户登录
	 * @param $user_name
	 * @param $password
	 */
	function insert_user_login($uid)
	{
		$db_user_login = new db_user_login();
		$today = Date::get_date();
		//check have add login info
		$today_login_info = $db_user_login->get_user_login_item_by_uid($uid,$today);
		if(!$today_login_info)
		{
			$insert_res = $db_user_login->insert_user_login($uid,$user_nickname);
			return $insert_res;
		}
		else
		{
			return false;
		}
	}
	
	
}
	